#ifndef __LTV_H
#define __LTV_H

typedef struct {
    unsigned short int length;
    unsigned short int type;
    unsigned char *value;
} LTV;


LTV ltv_decode(unsigned char *data);

void ltv_encode(unsigned char data_buff[], int type, const int *data);
void show_ltv(LTV ltv);
#endif